#!/usr/bin/env python
# -*- coding:utf-8 -*-
class D(object):
    def bar(self):
        print 'D.bar'
class C(D):
    def bar(self):
        print 'C.bar'
class B(D):
    def bar1(self):
        print 'B.bar'
class A(B, C):
    def bar1(self):
        print 'A.bar'
obj=A()
obj.bar()